package br.fbv.anotaFacil.view;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import br.fbv.anotaFacil.R;

public class InicioAnotaFacilActivity extends Activity {
	/**
	 * @see android.app.Activity#onCreate(Bundle)
	 */
	public ListView lista;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.apresentacao);

		final Button button = (Button) findViewById(R.id.btnApresentacao);

		button.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				setContentView(R.layout.menu);

				// ArrayAdapter<String> adapter = new
				// ArrayAdapter<String>(InicioProjetoActivity.this,
				// android.R.layout.simple_list_item_1, contatos);
				// lista = (ListView) findViewById(R.id.listView1);
				// lista.setAdapter(adapter);
				// lista.setOnItemClickListener(new OnItemClickListener() {
				// public void onItemClick(AdapterView<?> arg0, View arg1, int
				// arg2,
				// long arg3) {
				// if (lista.getSelectedItem() != null) {
				// AlertDialog.Builder dialogo = new AlertDialog.Builder(
				// InicioProjetoActivity.this);
				// dialogo.setTitle("Contato selecionado");
				// dialogo.setMessage(lista.getSelectedItem().toString());
				// dialogo.setNeutralButton("OK", null);
				// dialogo.show();
				// }
				// }
				// });

			}
		});
	}

	public void clickDosBotoes(View v) {
		Intent it = null;

		switch (v.getId()) {
		case R.id.btncadastro:
			// it.putExtra("layout", R.layout.main);

			break;

		case R.id.btnConsulta:
			// it.putExtra("layout", R.layout.main);
			break;

		case R.id.btnWEbServices:
			 it = new Intent(this, WebServicesActivity.class);
			 it.putExtra("layout", R.layout.main);
			break;

		case R.id.btnUtilitarios:
			// it.putExtra("layout", R.layout.main);
			break;
		}
		 startActivity(it);
	}

}
